$OpenBSD: patch-libs_math_test_compile_test_test_compile_result_hpp,v 1.1 2017/05/24 08:30:20 espie Exp $

Index: libs/math/test/compile_test/test_compile_result.hpp
--- libs/math/test/compile_test/test_compile_result.hpp.orig
+++ libs/math/test/compile_test/test_compile_result.hpp
@@ -31,7 +31,7 @@ inline void check_result_imp(bool, bool){}
 //
 // If the compiler warns about unused typedefs then enable this:
 //
-#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)))
+#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7))) || defined(__clang__)
 #  define BOOST_MATH_ASSERT_UNUSED_ATTRIBUTE __attribute__((unused))
 #else
 #  define BOOST_MATH_ASSERT_UNUSED_ATTRIBUTE
